package dome7;

public class TestDemo3 {
    public static void main(String[] args) throws
            CloneNotSupportedException {
        Person person1 = new Person();
        Person person2 = (Person) person1.clone();
        System.out.println(" 通过 person2 修改前的结果 ");
        System.out.println(person1.money.m);
        System.out.println(person2.money.m);
        person2.money.m = 13.6;

        System.out.println("通过person2 修改后的结果 ");
        System.out.println(person1.money.m);
        System.out.println(person2.money.m);
    }
}
